package com.example.mytayunapi.Service;

import com.example.mytayunapi.Entity.CommentsInfo;
import com.example.mytayunapi.Mapper.CommentsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommentsInfoServiceImpl implements CommentsInfoService{
    @Autowired
    private CommentsMapper commentsMapper;


    @Override
    public List<CommentsInfo> getCommentsInfoByCommentID(String CommentID) {
        return commentsMapper.getCommentsInfoByCommentID(CommentID);
    }

    @Override
    public Integer insterComments(CommentsInfo commentsInfo) {
        Integer i = commentsMapper.insterComments(commentsInfo);
        return i;
    }
}
